package com.hh.releasenode.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @ClassName OAuth2Token
 * @Description TODO
 * @Author KunxianLi
 * Date 2020/6/28 10:58
 * Version 1.0
 **/
public class OAuth2Token implements AuthenticationToken {

    private String token;

    public OAuth2Token(String token){
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
